package cn.usian.common;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200,"操作成功"),
    ERROR(500,"操作失败"),
    LOGIN_OUT(400,"用户未登录"),
    LOGIN_CODE_ERROR(401,"验证码错误"),
    LOGIN_USER_ERROR(402,"用户不存在"),
    LOGIN_PASSWORD_ERROR(403,"账号或密码错误"),
    LOGIN_PHONE_ERROR(404,"手机号已注册，请重新登陆"),
    LOGIN_ISDELETE_ERROR(405,"账号已停用");

    private Integer code;
    private String message;

    ResultEnum(){

    }

     ResultEnum(Integer code,String message){
         this.code=code;
         this.message=message;
    }
}
